﻿// Imports
using System;
using System.Web;
using System.Web.UI;
using System.Web.Routing;
using System.Web.Compilation;

namespace Nickel
{

    /// <summary>
    /// Routes read to Upload.aspx
    /// </summary>
    public class UploadRouteHandler : IRouteHandler
    {

        /// <summary>
        /// Get upload page
        /// </summary>
        /// <param name="requestContext">Request context</param>
        /// <returns>The web page</returns>
        public IHttpHandler GetHttpHandler(RequestContext requestContext)
        {

            // Return page with table and argument
            return BuildManager.CreateInstanceFromVirtualPath(@"~/Pages/Upload.aspx", typeof(Page)) as Page;

        }

    }

}
